<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>龙窝</title>

<link rel="icon" href="/dogshop/Public/img/008.jpg">
<link href="/dogshop/Public/css/bootstrap.min.css" rel="stylesheet">
<link href="/dogshop/Public/css/datepicker3.css" rel="stylesheet">
<link href="/dogshop/Public/css/styles.css" rel="stylesheet">

<!--[if lt IE 9]>
<script src="/dogshop/Public/js/html5shiv.js"></script>
<script src="/dogshop/Public/js/respond.min.js"></script>
<![endif]-->
	<style>
		*{
			font-family: 微软雅黑;
		}
	</style>
</head>

<body>
	<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>

				<a class="navbar-brand" href="#">龙窝管理系统 <span style="color: white;font-size: 70%">-v1.0</span></a>
				<ul class="user-menu">
					<li class="dropdown pull-right">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> <?php
 echo $_SESSION['admin']['user']; ?><span class="caret"></span></a>
						<ul class="dropdown-menu" role="menu">
							<!--<li><a href="#"><span class="glyphicon glyphicon-user"></span> Profile</a></li>-->
							<li><a href="<?php echo U('Home/Login/changePW');?>"><span class="glyphicon glyphicon-cog"></span> 修改管理员密码</a></li>
							<li><a href="<?php echo U('Home/Index/out');?>"><span class="glyphicon glyphicon-log-out"></span> 退出</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</div><!-- /.container-fluid -->
	</nav>

	<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar">
		<!--<form role="search">-->
			<!--<div class="form-group">-->
				<!--<input type="text" class="form-control" placeholder="Search">-->
			<!--</div>-->
		<!--</form>-->
		<ul class="nav menu" style="color: black">
			<li><a href="<?php echo U('Home/Index/index');?>"><span class="glyphicon glyphicon glyphicon-home"></span>  主页</a></li>
			<li><a href="<?php echo U('Home/List/index');?>"><span class="glyphicon glyphicon-th"></span> 宠物信息管理</a></li>
			<li class="parent ">
				<a href="<?php echo U('Home/Vip/index');?>">
					<span class="glyphicon glyphicon-list"></span> 会员管理 <span style="color: red;font-size: 80%;"><?php echo ($num); ?>位</span><span data-toggle="collapse" href="#sub-item-1" class="icon pull-right"><em class="glyphicon glyphicon-s glyphicon-plus"></em></span>
				</a>
				<ul class="children collapse" id="sub-item-1">
					<!--<li>-->
						<!--<a class="" href="#">-->
							<!--<span class="glyphicon glyphicon-share-alt"></span> 结算-->
						<!--</a>-->
					<!--</li>-->
				</ul>
			</li>
			<li role="presentation" class="divider"></li>
			<li><a href="<?php echo U('Home/Act/index');?>"><span class="glyphicon glyphicon-upload"></span> 记录</a></li>
		</ul>
	</div><!--/.sidebar-->
	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
			

<div class="row">
    <ol class="breadcrumb">
        <li><a href="<?php echo U('Home/Index/index');?>"><span class="glyphicon glyphicon-home"></span></a></li>
        <li class="active">系统管理</li>
    </ol>
</div><!--/.row-->

<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">分类管理</h1>
    </div>
    <a href="<?php echo U('Home/List/index');?>" style="margin-left: 1.2%;margin-bottom: 1.2%;background: red;border: 1px red" class="btn btn-primary">刷新</a>
</div>
<ul class="nav nav-tabs" role="tablist">
    <li class="active"><a href="">分类管理</a></li>
    <li><a href="<?php echo U('Home/List/store');?>">添加顶级分类</a></li>
</ul>


<form action="" method="post">
    <div class="panel panel-default">
        <div class="panel-body">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th width="80">编号</th>
                    <th>名称</th>
                    <th>修改时间</th>
                    <th>是否收费</th>
                    <th>金额</th>
                    <th width="200">操作</th>
                </tr>
                </thead>
                <tbody>
                <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                    <td><?php echo ($vo['cid']); ?></td>
                    <td><?php echo ($vo['_typename']); ?></td>
                    <td><?php echo date("Y-m-d H:i:s", $vo['type_time'] ) ?></td>
                    <td><?php echo ($vo['type_is_obj']); ?></td>
                    <td style="color: red"><?php echo ($vo['type_value']); ?></td>
                    <td>
                        <div class="btn-group">
                            <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span></button>
                            <ul class="dropdown-menu dropdown-menu-right">
                                <li><a href="<?php echo U('Home/List/addson',['id'=>$vo['cid']]);?>">添加子级分类</a></li>
                                <li class="divider"></li>
                                <li><a href="<?php echo U('Home/List/edit',['id'=>$vo['cid']]);?>">编辑</a></li>
                                <li class="divider"></li>
                                <li><a href="<?php echo U('Home/List/delect',['id'=>$vo['cid']]);?>">删除</a></li>
                            </ul>
                        </div>
                    </td>
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
            </table>
        </div>
    </div>
    </form>

	</div>

	<script src="/dogshop/Public/js/jquery-1.11.1.min.js"></script>
	<script src="/dogshop/Public/js/bootstrap.min.js"></script>
	<script src="/dogshop/Public/js/chart.min.js"></script>
	<script src="/dogshop/Public/js/chart-data.js"></script>
	<script src="/dogshop/Public/js/easypiechart.js"></script>
	<script src="/dogshop/Public/js/easypiechart-data.js"></script>
	<script src="/dogshop/Public/js/bootstrap-datepicker.js"></script>
	<script>
		$('#calendar').datepicker({
		});

		!function ($) {
		    $(document).on("click","ul.nav li.parent > a > span.icon", function(){
		        $(this).find('em:first').toggleClass("glyphicon-minus");
		    });
		    $(".sidebar span.icon").find('em:first').addClass("glyphicon-plus");
		}(window.jQuery);

		$(window).on('resize', function () {
		  if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')
		})
		$(window).on('resize', function () {
		  if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')
		})
	</script>
</body>

</html>